/*
 * Interface.cpp
 *
 *  Created on: 11.12.2011
 *      Author: serafim
 */

#include "Interface.h"



void Interface::setProgressPos(double pos){
	_window->setProgressPos(pos);
	_window->update();
}

void Interface::setProgressText(string text){
	_window->setProgressText(text);
	_window->update();
}

void Interface::setStatusMessage(string text){
	_window->setStatusMessage(text);
	_window->update();
}

Interface::Interface():
	_window(0){
}


Interface* Interface::Instance(){
	if(_instance == 0){
		_instance = new Interface;
	}
	return _instance;
}

void Interface::init(Window* win){
	if(_window==0)
		_window = win;
}
